package com.strategy;

import com.strategy.case1.BeanServiceManager;
import com.strategy.case1.Person1ServiceImpl;
import com.strategy.case1.Person2ServiceImpl;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cyf
 * @description
 * @create 2018-09-20 16:44
 **/
public class Main {

    public static void main(String[] args) {
//        CalculateSubImpl sub = new CalculateSubImpl();
//        CalculateMultImpl mult = new CalculateMultImpl();
//        CalculateManager manager = new CalculateManager(mult);
//        Integer result = (Integer) manager.execute(2, 1);
//        System.out.println(result);

        Person2ServiceImpl personService = new Person2ServiceImpl();
        Person1ServiceImpl person1Service = new Person1ServiceImpl();
        BeanServiceManager manager = new BeanServiceManager(personService);
        Map<String,Object> map = new HashMap();
        manager.getBean(map);
    }

}
